import Layout from '@/views/layout/Layout.vue'

export const messageRouter = {

    path: '/message',
    name: 'massage',
    component: Layout,
    redirect: '/message/school-message',
    children: [
        // 发送 school message
        {
            path: 'school-message',
            name: 'SendSchoolMessage',
            component: () => import('@/views/modules/message'),
            props: {
                submoduleName: 'SchoolMessage'
            }
        },
        // school message 历史记录
        {
            path: 'history',
            name: 'SchoolMessageHistory',
            component: () => import('@/views/modules/message'),
            props: {
                submoduleName: 'MessageHistory'
            }
        }
    ]
}